<template>
  <div class="homeHead">
    <div class="homeHead-left">
       <van-icon class="iconfont" class-prefix="icon" name="fangdajing" @click="$router.push('/search')"></van-icon>
    </div>
    <div class="homeHead-center">
      <img src="./assets/img/logo.png" alt="">
    </div>
    <div class="homeHead-right" @click="enterCates">
       <van-icon class="iconfont" class-prefix="icon" name="mulu" ></van-icon>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    enterCates () {
      this.$router.push('/cates')
    }
  }
}
</script>

<style lang="scss" scoped>
.homeHead{
  height: 50px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  padding:0 .3rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .homeHead-left{
    padding-left: 5px;
  }
  .homeHead-right{
    padding-right: 5px;
  }
  .homeHead-center{
    margin: 0 auto;
    img{
      width: 56px;
    }
  }
}
</style>
